# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.RapidMigrationAssessment.V1.Model.Collector do
  @moduledoc """
  Message describing Collector object.

  ## Attributes

  *   `bucket` (*type:* `String.t`, *default:* `nil`) - Output only. Store cloud storage bucket name (which is a guid) created with this Collector.
  *   `clientVersion` (*type:* `String.t`, *default:* `nil`) - Output only. Client version.
  *   `collectionDays` (*type:* `integer()`, *default:* `nil`) - How many days to collect data.
  *   `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Create time stamp.
  *   `description` (*type:* `String.t`, *default:* `nil`) - User specified description of the Collector.
  *   `displayName` (*type:* `String.t`, *default:* `nil`) - User specified name of the Collector.
  *   `eulaUri` (*type:* `String.t`, *default:* `nil`) - Uri for EULA (End User License Agreement) from customer.
  *   `expectedAssetCount` (*type:* `String.t`, *default:* `nil`) - User specified expected asset count.
  *   `guestOsScan` (*type:* `GoogleApi.RapidMigrationAssessment.V1.Model.GuestOsScan.t`, *default:* `nil`) - Output only. Reference to MC Source Guest Os Scan.
  *   `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs.
  *   `name` (*type:* `String.t`, *default:* `nil`) - name of resource.
  *   `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Service Account email used to ingest data to this Collector.
  *   `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the Collector.
  *   `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Update time stamp.
  *   `vsphereScan` (*type:* `GoogleApi.RapidMigrationAssessment.V1.Model.VSphereScan.t`, *default:* `nil`) - Output only. Reference to MC Source vsphere_scan.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :bucket => String.t() | nil,
          :clientVersion => String.t() | nil,
          :collectionDays => integer() | nil,
          :createTime => DateTime.t() | nil,
          :description => String.t() | nil,
          :displayName => String.t() | nil,
          :eulaUri => String.t() | nil,
          :expectedAssetCount => String.t() | nil,
          :guestOsScan => GoogleApi.RapidMigrationAssessment.V1.Model.GuestOsScan.t() | nil,
          :labels => map() | nil,
          :name => String.t() | nil,
          :serviceAccount => String.t() | nil,
          :state => String.t() | nil,
          :updateTime => DateTime.t() | nil,
          :vsphereScan => GoogleApi.RapidMigrationAssessment.V1.Model.VSphereScan.t() | nil
        }

  field(:bucket)
  field(:clientVersion)
  field(:collectionDays)
  field(:createTime, as: DateTime)
  field(:description)
  field(:displayName)
  field(:eulaUri)
  field(:expectedAssetCount)
  field(:guestOsScan, as: GoogleApi.RapidMigrationAssessment.V1.Model.GuestOsScan)
  field(:labels, type: :map)
  field(:name)
  field(:serviceAccount)
  field(:state)
  field(:updateTime, as: DateTime)
  field(:vsphereScan, as: GoogleApi.RapidMigrationAssessment.V1.Model.VSphereScan)
end

defimpl Poison.Decoder, for: GoogleApi.RapidMigrationAssessment.V1.Model.Collector do
  def decode(value, options) do
    GoogleApi.RapidMigrationAssessment.V1.Model.Collector.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.RapidMigrationAssessment.V1.Model.Collector do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
